import request from '@/utils/request'

// 根据父编码获取到子集合
export function getByParent(parent) {
  return request({
    url: '/gonitis/district/getByParent/' + parent,
    method: 'get'
  })
}

export function getChildrenByName(query) {
  return request({
    url: '/gonitis/district/getAddress',
    method: 'get',
    params: query
  })
}
